deadlock handling methods in operating system